import java.util.*;

public class Main{
    // 抄送列表
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {
            String s1 = in.nextLine().trim();
            String s2 = in.nextLine().trim();

            String[] strings = s1.split(",");
            boolean flag = true;
            for (int i = 0; i < strings.length; i++) {
                if (strings[i].equals("")) {
                    strings[i] = ",";
                }
            }
            for (int i = 0; i < strings.length; i++) {
                if ((strings[i].charAt(0) == '"' && strings[i].charAt(strings[i].length()-1) != '"')) {
                    int j = 1;
                    strings[i] = strings[i] + "," + strings[i+j];
                    j++;
                    while ((strings[i].charAt(strings[i].length()-1) != '"' &&
                    strings[i].charAt(0) != '"')) {
                        strings[i] = strings[i] + "," + strings[i+j];
                        j++;
                    }
                }
            }
            for (int i = 0; i < strings.length; i++) {
                if (strings[i].equals("\"") || strings[i].equals(",")) {
                    int j = 1;
                    while (!strings[i+j].equals("\"")) {
                        strings[i] = strings[i] + strings[i+j];
                        strings[i+j] = "";
                        j++;
                    }
                    strings[i] += ",\"";
                    i = i+j;
                }
            }
            for (int i = 0; i < strings.length; i++) {
                if (s2.equals(strings[i]) || ("\""+s2+"\"").equals(strings[i])) {
                    System.out.println("Ignore");
                    flag = false;
                    break;
                }
            }

            if (flag) {
                System.out.println("Important!");
            }
        }
    }



    public static float count(int n) {
        if(n==1){
            return 0;
        }
        if(n==2){
            return 1;
        }else{
            return (n-1)*(count(n-1)+count(n-2));
        }
    }
    public static float probability(int n){
       if(n==0){
           return 1;
       }else{
           return n*probability(n-1);
       }
    }
     
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int n = in.nextInt();
            float result = (count(n)/probability(n))*100;
            System.out.println(String.format("%.2f", result) + "%");
        }
    }
}